<?php
/**
 *欢迎界面公告
 */
include "../util/DBUtil.php";

$sql = "select * from tb_announcement order by date desc";
$db = new DBUtil();
$result = $db->query($sql)[0];
//print_r($result);
?>
<h2>欢迎登录</h2>

<p>最新公告：<?php echo $result['title']?></p>
<i>发布时间：<?php echo $result['date']?></i>
<p>内容：<?php echo $result['content']?></p>

